package com.sun.service.ums;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sun.pojo.UmsMenu;
import com.sun.pojo.UmsRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 后台用户角色表 服务类
 * </p>
 *
 * @author 妙妙屋
 * @since 2021-12-13
 */
public interface IUmsRoleService extends IService<UmsRole> {

    IPage<UmsRole> selectPage(String keyword, Long pageNum, Long pageSize);

    List<UmsMenu> listMenu(Long id);

    void deleteAllMenu(Long roleId);

    void addMenu(Long roleId, Long menuId);
}
